package com.gzxx.domain.bo;

import com.gzxx.domain.po.SysUserRole;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

/**
 * 用户角色实体
 *
 * @Author pengpdx
 * @Date 2020/7/29 11:55
 */
@Builder
@Getter
@ToString
public class SysUserRoleBO {

    private Long userId;

    private Long roleId;


    /**
     * 创建用户角色
     */
    public SysUserRole create() {
        SysUserRole userRole = SysUserRole.builder()
                .roleId(this.roleId)
                .userId(this.userId)
                .build();
        return userRole;
    }
}
